package com.wiringweb.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Annotate the method that should be executed before invocation any method in controller<br/>
 * But in case <b>method</b> is provided, in will be executed only on this method
 * Method should accept only one HttpServletRequest argument
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface PreRequest {
    public String method() default "";
}
